<!-- 我的 -->
<template>
  <div class="box">
    <div class="box-box1">
      <div class="box-b-header">
        <img
          src="https://api-haoke-web.itheima.net/img/profile/bg.png"
          alt=""
        />
      </div>
      <div class="box-b-bbody"></div>
      <div class="box-xiang">
        <div></div>
        <div class="denlu">
          <div></div>
          <div class="toubu">
            <div class="tuobu-box1"></div>
            <div class="tuobu-box2">
              <div></div>
              <div>游客</div>
              <div><button @click="denglui">去登录</button></div>
            </div>
          </div>
          <div></div>
        </div>
        <div></div>
      </div>
      <div class="boxtouxiang">
        <img
          src="https://api-haoke-web.itheima.net/img/profile/avatar.png"
          alt=""
        />
      </div>
    </div>
    <div class="box-bbody">
      <div class="bbody-box1">
        <div class="bbody-Mb1">
          <div @click="wWzhufang">
            <span><van-icon name="wap-home-o" /></span>
            <span>我的出租屋</span>
          </div>
          <div @click="kKanjilu">
            <span><van-icon name="underway-o" /></span>
            <span>看房记录</span>
          </div>
          <div @click="fFangzhu">
            <span><van-icon name="calendar-o" /></span>
            <span>成为房主</span>
          </div>
        </div>
        <div class="bbody-Mb2">
          <!-- @click="Gzhiliao" -->
          <div>
            <span><van-icon name="contact" /></span>
            <span>个人资料</span>
          </div>
          、
          <!-- @click="Lwomen" -->
          <div>
            <span><van-icon name="service-o" /></span>
            <span>联系我们</span>
          </div>
          <div></div>
        </div>
      </div>
      <div class="bbody-box2">
        <div></div>
        <div class="box2-img">
          <img
            src="https://api-haoke-web.itheima.net/img/profile/join.png"
            alt=""
          />
        </div>
        <div></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
    //这里存放数据
    return {};
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {
    //wWzhufang
    wWzhufang() {
      //我的租房
      this.$router.push("/Wzhufang");
    },
    //kKanjilu
    kKanjilu() {
      //我的租房
      this.$router.push("/Kanjilu");
    },
    fFangzhu() {
      //房主
      this.$router.push("/Fangzhu");
    },
    denglui() {
      this.$router.push("/Dengshuju");
    },
  },
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
};
</script>
<style lang='scss' scoped>
.box {
  width: 100%;
  height: 100%;
  background: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  font-size: 12x;
}
//定位一
.box-box1 {
  width: 100%;
  height: 5rem;
  background: rgb(255, 255, 255);
  position: relative; //绝对定位
  display: flex;
  flex-direction: column;
}
//header
.box-b-header {
  width: 100%;
  height: 3rem;
  background: rgb(255, 255, 255);
}
.box-b-header img {
  width: 100%;
  height: 100%;
}
//bbody
.box-b-bbody {
  width: 100%;
  height: 2rem;
  background: rgb(255, 255, 255);
}
////想对定位
.box-xiang {
  width: 100%;
  height: 4rem;
  position: absolute;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.denlu {
  width: 100%;
  height: 4rem;
  // background: greenyellow;
  display: flex;
  flex-direction: column;
}
.toubu {
  width: 100%;
  height: 4rem;
  display: flex;
  flex-direction: column;
  // background: paleturquoise;
  position: relative;
}
.tuobu-box1 {
  width: 100%;
  height: 1.5rem;
  // background: red;
}
.tuobu-box2 {
  margin: 0 auto;
  width: 80%;
  height: 2.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ccc;
}
.tuobu-box2 div {
  text-align: center;
  // line-height: 30%;
  width: 100%;
  height: 30%;
  font-size: 10px;
}
.tuobu-box2 div button {
  width: 50px;
  height: 20px;
  font-size: 9px;
  font-weight: bolder;
  // background: greenyellow;
  text-align: center;
  line-height: 20px;
  outline: none;
  border: none;
  border-radius: 5px;
  background: rgb(3, 182, 107);
  color: #fff;
}
.boxtouxiang {
  top: 70px;
  left: 115px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  position: absolute;
  text-align: center;
  line-height: 50px;
  border: 1px solid rgb(228, 225, 225);
}
.boxtouxiang img {
  margin-top: 4px;
  width: 40px;
  height: 40px;
}
//绝对内容
.box-bbody {
  width: 100%;
  flex: 1;
  background: rgba(255, 255, 255, 0.329);
  display: flex;
  flex-direction: column;
}
.bbody-box1 {
  width: 100%;
  height: 4rem;
  // background: paleturquoise;
  display: flex;
  flex-direction: column;
}
.bbody-Mb1 {
  margin: 0 auto;
  width: 80%;
  height: 2rem;
  // background: red;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bbody-Mb1 div {
  width: 70px;
  // background: pink;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bbody-Mb1 div span {
  margin: 4px 0px;
}
.bbody-Mb2 {
  margin: 0 auto;
  width: 80%;
  height: 2rem;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  // background: papayawhip;
}
.bbody-Mb2 div {
  width: 70px;
  // background: pink;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bbody-Mb2 div span {
  margin: 4px 0px;
}
.bbody-box2 {
  width: 100%;
  height: 1rem;
  // background: orange;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.box2-img {
  width: 80%;
  height: 100%;
  // background: red;
}
.box2-img img {
  width: 100%;
  height: 100%;
}
</style>